package com.ctrip.demo.design.chain.upgrade;

import com.ctrip.demo.design.chain.common.PreparationList;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class WashFaceFilter implements StudyPrepareFilter {
    Logger logger = LoggerFactory.getLogger(WashFaceFilter.class);
    @Override
    public void doFilter(PreparationList preparationList, FilterChain filterChain) {
        logger.info("WashFaceFilter start ....");
        if (preparationList.isWashFace()) {
            System.out.println("洗完脸");
        }

        filterChain.doFilter(preparationList, filterChain);
        logger.info("WashFaceFilter end ....");

    }
}
